﻿using System.Runtime.Serialization;

namespace TimeTravel.Components
{
    /// <summary>
    /// 注册用户信息
    /// </summary>
    [DataContract]
    public class SysUserInfo : BaseComponent
    {
        /// <summary>
        /// 用户名称
        /// </summary>		
        [DataMember(Name = "name")]
        public string Name { get; set; }

        /// <summary>
        /// 用户密码
        /// </summary>		
        public string Password { get; set; }

        /// <summary>
        /// 用户头像
        /// </summary>		
        [DataMember(Name = "picture")]
        public string Picture { get; set; }

        /// <summary>
        /// 用户邮箱
        /// </summary>		
        [DataMember(Name = "email")]
        public string Email { get; set; }

        /// <summary>
        /// 用户昵称（单独设定）
        /// </summary>		
        [DataMember(Name = "nickname")]
        public string NickName { get; set; }

        /// <summary>
        /// 最近登录（时间戳格式）
        /// </summary>		
        [DataMember(Name = "lastlogin")]
        public int LastLogin { get; set; }

        /// <summary>
        /// 注册日期（时间戳格式）
        /// </summary>		
        [DataMember(Name = "registerdate")]
        public int RegisterTime { get; set; }

        /// <summary>
        /// 用户Salt
        /// </summary>		
        public string Salt { get; set; }
    }
}